package com.booktrade.service;

import com.booktrade.entity.Notifications;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 消息通知表，存储系统发送给用户的通知信息 服务类
 * </p>
 */
public interface INotificationsService extends IService<Notifications> {

    List<Notifications> getNoReadmessage(Integer userId);
    void createNotification(Integer userId, String message);
    void markAsRead(Integer notificationId);
    List<Notifications> getNotificationsByUserId(Integer userId);
}
